package com.itheima.domain.mongo;


import cn.hutool.core.bean.BeanUtil;
import com.itheima.domain.db.UserInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "voice_messages")
public class VoiceMessages implements Serializable {

    private ObjectId id;
    private String created; //创建时间
    private Long userId;//该条语音消息的用户id
    private Long reVoiceUserId;//接收到该条消息的用户id
    private String soundUrl;//语音消息，URL
    private Integer remainingTimes;//接收剩余次数
    private Integer rqmainingTimes;//发送剩余数量
}
